﻿<%@ Page Language="C#" AutoEventWireup="true" Title="Sueldos" MasterPageFile="~/MasterPage.master"  CodeFile="FaltasPorEmpleado.aspx.cs" Inherits="Empleados_FaltasPorEmpleado"%>

<%@ Register Src="../UserControls/Fecha.ascx" TagName="Fecha" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 
    <asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager>
    <table width="100%">
        <tr>
            <td class="tdEmpleados" colspan="4" style="width: 100%">
                Faltas por Empleado</td>
        </tr>
        <tr>
            <td class="tdForm" colspan="4" style="width: 100%; text-align: center">
                <asp:Label ID="lblAccion" runat="server" CssClass="lblAccion" Text="lblAccion"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="tdLiteral" style="width: 15%; text-align: right">
                Empleado:</td>
            <td class="tdForm" colspan="1" style="width: 20%; height: 14px; text-align: left">
                <asp:TextBox ID="txtIdEmpleado" runat="server" AutoPostBack="True" OnTextChanged="txtIdEmpleado_TextChanged"
                    Width="70px"></asp:TextBox>&nbsp;
                <asp:Button ID="btnBuscarEmpleado" runat="server" OnClick="btnBuscarEmpleado_Click"
                    Text="..." /></td>
            <td class="tdForm" colspan="2" style="width: 65%; text-align: left">
                <asp:TextBox ID="txtEmpleado" runat="server" Width="90%"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 100%; text-align:center;" colspan="4">
                <table class="tablaForm" style="width: 100%">
                    <tr>
                        <td  class="tdLiteral" style="width: 25%; text-align:right;">
                            <asp:Label ID="lblFechaD" runat="server" Text="Fecha Desde"></asp:Label>
                        </td>
                        <td style="width: 25%; text-align:left;">
                            <uc1:Fecha ID="FechaD" runat="server" />
                        </td>
                        <td  class="tdLiteral" style="width: 25%; text-align:right;">
                            <asp:Label ID="lblFechaH" runat="server" Text="Fecha Hasta"></asp:Label>
                        </td>
                        <td style="width: 25%; text-align:left;">
                            <uc1:Fecha ID="FechaH" runat="server" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table class="tdForm" style="width: 100%">
        <tr>
            <td style="width: 100%" class="tdBotones">
                <asp:Button ID="btnVer" runat="server" OnClick="btnVer_Click" Text="Ver Faltas" />
                &nbsp; &nbsp;<asp:Button ID="btnOtro" runat="server" OnClick="btnOtro_Click" Text="Ver Otro" />
                &nbsp;&nbsp;
                &nbsp; &nbsp;<asp:Button ID="btnCancelar" runat="server" OnClick="btnCancelar_Click" Text="Cancelar" />
                &nbsp;&nbsp;
            </td>
        </tr>
         <tr>
            <td  id="tdSinDesc" runat="server" class="tdForm" style="text-align: center">
                <table width="100%">
                    <tr>
                        <td class="tdTit" style="text-align: center">
                            Faltas Sin Descontar
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: center">
                            <asp:GridView ID="gvFaltas" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
                                CellPadding="3" DataKeyNames="Id_Falta" GridLines="Vertical" OnPageIndexChanging="gvFaltas_PageIndexChanging" Width="100%">
                                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                <Columns>
                                    <asp:TemplateField HeaderText="N&#250;mero">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="Código" runat="server" Text='<%# Bind("Id_Falta") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Fecha">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label id="Fecha" runat="server" Text='<%# Bind("Fecha", "{0:dd/MM/yyyy}") %>'></asp:Label> 
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Center" />
                                <EditRowStyle Wrap="True" />
                                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#325FB9" Font-Bold="True" Font-Names="Arial Rounded MT Bold"
                                    ForeColor="White" />
                                <AlternatingRowStyle BackColor="Gainsboro" />
                            </asp:GridView>
                            
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
          <tr>
            <td  id="tdDesc" runat="server" class="tdForm" style="text-align: center">
                <table width="100%">
                    <tr>
                        <td class="tdTit" style="text-align: center">
                            Faltas Descontadas
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: center">
                            <asp:GridView ID="gvFaltasD" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
                                CellPadding="3" DataKeyNames="Id_Falta" GridLines="Vertical" OnPageIndexChanging="gvFaltasD_PageIndexChanging" Width="100%">
                                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                <Columns>
                                    <asp:TemplateField HeaderText="N&#250;mero">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="Código" runat="server" Text='<%# Bind("Id_Falta") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Fecha">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label id="Fecha" runat="server" Text='<%# Bind("Fecha", "{0:dd/MM/yyyy}") %>'></asp:Label> 
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Descontada">
                                        <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label id="Fecha_Desc" runat="server" Text='<%# Bind("Fecha_Desc", "{0:dd/MM/yyyy}") %>'></asp:Label> 
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Center" />
                                <EditRowStyle Wrap="True" />
                                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#325FB9" Font-Bold="True" Font-Names="Arial Rounded MT Bold"
                                    ForeColor="White" />
                                <AlternatingRowStyle BackColor="Gainsboro" />
                            </asp:GridView>
                            
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 100%; text-align:center;">
                <table class="tablaForm" style="width: 100%">
                    <tr>
                        <td  colspan="6" class="tdTit" style="text-align: center">
                            Totales
                        </td>
                    </tr>
                    <tr>
                        <td  class="tdLiteral" style="width: 17%; text-align:right;">
                            <asp:Label ID="lblSinDesc" runat="server" Text="Sin Descontar"></asp:Label>
                        </td>
                        <td style="width: 17%; text-align:left;">
                            <asp:TextBox CssClass="cuadrotxt" ID="txtSinDesc" runat="server" ReadOnly=true Width="60px"></asp:TextBox>
                        </td>
                        <td  class="tdLiteral" style="width: 17%; text-align:right;">
                            <asp:Label ID="lblDesc" runat="server" Text="Descontadas"></asp:Label>
                        </td>
                        <td style="width: 17%; text-align:left;">
                            <asp:TextBox CssClass="cuadrotxt" ID="txtDesc" runat="server" ReadOnly=true Width="60px"></asp:TextBox>
                        </td>
                        <td  class="tdLiteral" style="width: 16%; text-align:right;">
                            <asp:Label ID="lblTotal" runat="server" Text="Total"></asp:Label>
                        </td>
                         <td style="width: 16%; text-align:left;">
                            <asp:TextBox CssClass="cuadrotxt" ID="txtTotal" runat="server" ReadOnly=true Width="60px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
    
<asp:Panel ID="pnlTarifaInvalida" runat="server" CssClass="tdBotones" Style="display: none" Width="233px">
        <div style="text-align:center; background-image: none; background-color: transparent;">
            Falta Seleccionar Empleado<br />
            <br />
            <asp:Button ID="btnOkTarifaInvalida" runat="server" Text="OK" Width="64px"/>
        </div>
    </asp:Panel>
       <table border="0" id = "OcultarProveedor" runat="server" style="width: 0px; height: 0px">
            <tr>
                <td style="width: 100px; height: 18px;">
                    <asp:Button ID="btnTarifaInvalidaInvisible" runat="server" Text="Button" Height="0px" Width="0px" />
                </td>
            </tr>
        </table>
    <cc1:ModalPopupExtender id="mpeError" runat="server" backgroundcssclass="modalBackground"
        dropshadow="true" okcontrolid="btnOkTarifaInvalida" popupcontrolid="pnlTarifaInvalida" targetcontrolid="btnTarifaInvalidaInvisible">
    </cc1:ModalPopupExtender>
    
</asp:Content>
